package com.example.searchservice.doc;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class StudentDocument {

    public StudentDocument() {}

    public StudentDocument(String name, Integer age, String email, String city) {
        this.name = name;
        this.age = age;
        this.email = email;
        this.city = city;
    }

    @JsonProperty("id")
    private String id;

    @JsonProperty("name")
    private String name;

    @JsonProperty("age")
    private Integer age;

    @JsonProperty("email")
    private String email;

    @JsonProperty("city")
    private String city;

}